# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=libretro-beetle-bsnes
pkgver=0_git20191012
pkgrel=0
_commit="de22d8420ea606f1b2f72afd4dda34619cf2cc20"
pkgdesc="standalone port of Mednafen bSNES to libretro"
url="https://github.com/libretro/beetle-bsnes-libretro"
arch="all"
license="GPL-2.0-only"
source="$pkgname-$_commit.tar.gz::https://github.com/libretro/beetle-bsnes-libretro/archive/$_commit.tar.gz
	patch-musl.patch"
builddir="$srcdir/beetle-bsnes-libretro-$_commit"
options="!check" # No tests

build() {
	make
}

package() {
	install -Dm644 mednafen_snes_libretro.so "$pkgdir"/usr/lib/libretro/mednafen_snes_libretro.so
}

sha512sums="176d55a1e0b8604d8f362e30566144d211b53db1a407838a252e78d94f709d1f646ca25724b70ffe6052cc04d7dd22ec22f8df25ba24479d8bf653e0e4f75488  libretro-beetle-bsnes-de22d8420ea606f1b2f72afd4dda34619cf2cc20.tar.gz
1324ce8101bea75316a5cfac6b21e442c2762c798b9d1ab5de22bf39adf38b154b4ffe7a79d34d9c919ec384465fd61c140765da60295c1712f93532336fdcb5  patch-musl.patch"
